// 导入axios工具包
import instance from '@/utils/axios.js'

// 获取验证码
export function codeApi(mobile) {
  return instance({
    url: '/au/code',
    method: 'POST',
    data: {
      mobile
    },
    isToken: false
  })
}

// 用户登录接口
export function loginApi({
  mobile,
  code
}) {
  return instance({
    url: '/au/login',
    method: 'POST',
    data: {
      mobile,
      code
    }
  })
}
